/*!
 * Copyright (c) Enalean, 2017. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

$homepage-small-screen-width: 850px;

.homepage-content {
    display: flex;
    justify-content: center;
    height: 100%;
    padding: 60px;
    background-image: linear-gradient(to bottom, $tlp-theme-background-color, $tlp-ui-white 50%);

    @media screen and (max-width: $homepage-small-screen-width) {
        padding: 40px 20px;
    }
}

.homepage-welcome-sign-in {
    display: flex;
    align-items: flex-start;
    max-width: 1400px;

    @media screen and (max-width: $homepage-small-screen-width) {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

.homepage-welcome {
    flex: 1 1 auto;
    max-width: 50%;
    margin: 0 50px 0 0;

    @media screen and (max-width: $homepage-small-screen-width) {
        width: 100%;
        max-width: none;
        margin: 0 0 20px;
        text-align: center;

        > .homepage-welcome-new-account-button {
            display: none;
        }
    }
}

.homepage-welcome-custom-logo {
    width: 250px;
    margin: 0 0 30px;
}

.homepage-welcome-standard-logo {
    margin: 0 0 40px;
    white-space: nowrap;
}

.homepage-welcome-standard-logo-tulip {
    margin: 0 18px 0 0;
    fill: $tlp-theme-color;
}

.homepage-welcome-standard-logo-tuleap {
    position: relative;
    top: 8px;
    fill: $tlp-theme-sidebar-background-color;
}

.homepage-welcome-title {
    margin: 0 0 30px;
    color: $tlp-theme-sidebar-background-color;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
}

.homepage-welcome-text {
    margin: 0 0 30px;
    color: $tlp-theme-sidebar-background-color;
    font-size: 18px;
    line-height: 30px;

    > p {
        margin: 0 0 16px;
        font-size: 18px;
        line-height: 30px;

        &:last-child {
            margin: 0;
        }
    }
}

.homepage-sign-in-wrapper {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
}

.homepage-sign-in,
.homepage-already-signed-in {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    width: 380px;
    padding: 30px 40px 40px;
    border: 1px solid $tlp-theme-color;
    border-radius: 4px;
    background: $tlp-ui-white;
    box-shadow: 0 8px 15px 0 transparentize(#000000, .95);
}

.homepage-sign-in-form {
    width: 100%;

    > .tlp-form-element > .tlp-input {
        border-color: $tlp-theme-color;
    }
}

.homepage-sign-in-title {
    margin: 0 0 40px;
    color: $tlp-theme-color;
    font-size: 40px;
    font-weight: 400;
}

.homepage-sign-in-button {
    height: 58px;
    margin: 20px 0 0;
}

.homepage-sign-in-register {
    margin: 30px 0 0;
}

.homepage-sign-in-forgot-password {
    text-align: right;
}

.homepage-already-signed-in > .tlp-avatar-jumbo {
    margin: 0 0 20px;
}

.homepage-already-signed-in-title {
    margin: 0 0 40px;
    color: $tlp-theme-sidebar-background-color;
    line-height: 38px;
    text-align: center;
}
